using System;
using DG.Tweening;
using UnityEngine;
using UnityEngine.UI;

public class UI3DPanelCommon : UIPanelBase
{
    public Image[] mImageList;
    private int mOldAmount = 0;
    private int mNewAmount = 1;

    private void OnEnable()
    {
        TweenImageFillAmount();
    }
    
    private void TweenImageFillAmount()
    {
        DOTween.To(delegate(float value)
        {
            for (var i = 0; i < mImageList.Length; i++)
            {
                mImageList[i].fillAmount = value;
            }

        }, mOldAmount, mNewAmount, 1f);
    }
}
